package com.ruoyi.factorydata.domain.dto;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.factorydata.domain.ProcessMaterialRelation;
import com.ruoyi.factorydata.domain.ProcessStationRelation;
import com.ruoyi.factorydata.domain.vo.MaterialDataVo;
import com.ruoyi.factorydata.domain.vo.StationDataVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ProcessDataDTO extends BaseEntity {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 工序编码(规则: 分类缩写+序号)
     */
    private String processCode;

    /**
     * 工序名称
     */
    private String processName;

    /**
     * 工序分类ID
     */
    private Long categoryId;

    /**
     * 工序类型
     */
    private String processType;

    /**
     * 工单报工
     */
    private String workOrderReporting;

    /**
     * 工序图纸
     */
    private String processImages;

    /**
     * 附件信息
     */
    private String processAttachments;

    /**
     * 标准工时
     */
    private Long standardWorkingHours;

    /**
     * 辅助工时
     */
    private Long auxiliaryWorkingHours;

    /**
     * 工序成本
     */
    private BigDecimal processCost;

    /**
     * 技术参数
     */
    private String technicalParameter;

    private List<Parameter> technicalParameterList;

    private List<ProcessStationRelation> processStationRelationList;

    private List<ProcessMaterialRelation> processMaterialRelationList;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Parameter {
        private String name;
        private String value;
    }
}
